PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Appearance Manager >

Programming With the Appearance Manager


Theme Track Press State Constants

You can use constants of type ThemeTrackPressState in structures of type ScrollBarTrackInfo and SliderTrackInfo to identify what is pressed in an active scroll bar or slider; the press state is ignored if the control is not active. The ThemeTrackPressState constants are available with Appearance Manager 1.1 and later.

Note that some constants are undefined when the corresponding arrows do not exist in the current visual appearance. Prior to using the ThemeTrackPressState constants, your application should call the function GetThemeScrollBarArrowStyle to obtain the type of scroll bar arrows currently being used.

enum {
    kThemeLeftOutsideArrowPressed   = 0x01,
    kThemeLeftInsideArrowPressed    = 0x02,
    kThemeLeftTrackPressed          = 0x04,
    kThemeThumbPressed              = 0x08,
    kThemeRightTrackPressed         = 0x10,
    kThemeRightInsideArrowPressed   = 0x20,
    kThemeRightOutsideArrowPressed  = 0x40,
    kThemeTopOutsideArrowPressed    = kThemeLeftOutsideArrowPressed,
    kThemeTopInsideArrowPressed     = kThemeLeftInsideArrowPressed,
    kThemeTopTrackPressed           = kThemeLeftTrackPressed,
    kThemeBottomTrackPressed        = kThemeRightTrackPressed,
    kThemeBottomInsideArrowPressed  = kThemeRightInsideArrowPressed,
    kThemeBottomOutsideArrowPressed = kThemeRightOutsideArrowPressed
};
typedef UInt8 ThemeTrackPressState;

Constant descriptions

kThemeLeftOutsideArrowPressed
For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the left is selected. For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, this constant is undefined and should not be used.
kThemeLeftInsideArrowPressed
For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used. For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, this constant is undefined and should not be used.
kThemeLeftTrackPressed
For a horizontal scroll bar or slider, indicates that the end of the track to the left of the scroll box or indicator is selected.
kThemeThumbPressed
Indicates that the scroll box or indicator is selected.
kThemeRightTrackPressed
For a horizontal scroll bar or slider, indicates that the end of the track to the right of the scroll box or indicator is selected.
kThemeRightInsideArrowPressed
For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used. For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, indicates that the inner arrow at the right end of the scroll bar is selected.
kThemeRightOutsideArrowPressed
For a horizontal scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the right is selected. For a horizontal scroll bar containing a single pair of arrows, with both arrows on the right, indicates that the outer arrow at the right end of the scroll bar is selected.
kThemeTopOutsideArrowPressed
For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the top is selected. For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, this constant is undefined and should not be used.
kThemeTopInsideArrowPressed
For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used. For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, this constant is undefined and should not be used.
kThemeTopTrackPressed
For a vertical scroll bar or slider, indicates that the end of the track above the scroll box or indicator is selected.
kThemeBottomTrackPressed
For a vertical scroll bar or slider, indicates that the end of the track beneath the scroll box or indicator is selected.
kThemeBottomInsideArrowPressed
For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, this constant is undefined and should not be used. For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, indicates that the inner arrow at the bottom end of the scroll bar is selected.
kThemeBottomOutsideArrowPressed
For a vertical scroll bar containing a single pair of arrows, with one arrow at each end, indicates that the arrow on the bottom is selected. For a vertical scroll bar containing a single pair of arrows, with both arrows on the bottom, indicates that the outer arrow at the bottom end of the scroll bar is selected.

© 1999 Apple Computer, Inc. – (Last Updated 29 April 99)